package com.sanley.piss.app.controller;

import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author limk
 * @date 2020/12/24 21:14
 */
@RestController
public class TestController {

    @GetMapping("/test")
    @RequiresRoles("admin")
    public String test() {
        return "test";
    }

    @GetMapping("/api/get/user")
    public String hah() {
        return "test";
    }

}
